;(function ($, global) { // markdown转换
  $md = $('.markdown')
  for (let index = 0; index < $md.length; index++) {
    element = $md.eq(index)
    element.html(marked(element.html()))
  }
})(jQuery, window)

;(function ($, global) { 
  $a = $(".sidebar-nav>li.category>a");

  $a.click(function() {
    $(this).parent().toggleClass('hideul')
  })
})(jQuery, window)
